
<?php

$operation = Blyn::app()->getActiveOperation();
//$operationUI = $operation->getUIManager();

$page = new BUIControl();
$page->setNode($operation);

if ($page->isAjaxLinkClicked('Add Event')) {
    $page->addRenderView('addNewEvent', 'addNewEvent');
} else if ($page->isAjaxLinkClicked('Modify Event')) {
    $page->addRenderView('modifyEvent', 'modifyEvent');
}
else
//default add eventList view
    $page->addRenderView('eventList', 'eventList');
?>
<?php $page->render(); ?>
